<template>
  <div class="container">
    <div class="content">
      <div class="content-item">
        <div class="item-top">
          <span class="item-title">Project Name</span>
          <span><span class="item-time-icon iconfont earth">&#xe638;</span>2020-04-17</span>
        </div>
        <div class="item-profile">
          <router-link to="TextContent"
                       tag="div"
                       class="profile">
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.
          </router-link>
          <div class="icon">
            <span class="iconfont earth">&#xe8ee;</span>
          </div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-top">
          <span class="item-title">Project Name</span>
          <span><span class="item-time-icon iconfont earth">&#xe638;</span>2020-04-17</span>
        </div>
        <div class="item-profile">
          <router-link to="/TextContent"
                       tag="div"
                       class="profile">
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.
          </router-link>
          <div class="icon">
            <span class="iconfont earth">&#xe8ee;</span>
          </div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-top">
          <span class="item-title">Project Name</span>
          <span><span class="item-time-icon iconfont earth">&#xe638;</span>2020-04-17</span>
        </div>
        <div class="item-profile">
          <router-link to="/TextContent"
                       tag="div"
                       class="profile">
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.
          </router-link>
          <div class="icon">
            <span class="iconfont earth">&#xe8ee;</span>
          </div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-top">
          <span class="item-title">Project Name</span>
          <span><span class="item-time-icon iconfont earth">&#xe638;</span>2020-04-17</span>
        </div>
        <div class="item-profile">
          <router-link to="/TextContent"
                       tag="div"
                       class="profile">
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.
          </router-link>
          <div class="icon">
            <span class="iconfont earth">&#xe8ee;</span>
          </div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-top">
          <span class="item-title">Project Name</span>
          <span><span class="item-time-icon iconfont earth">&#xe638;</span>2020-04-17</span>
        </div>
        <div class="item-profile">
          <router-link to="/TextContent"
                       tag="div"
                       class="profile">
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.
          </router-link>
          <div class="icon">
            <span class="iconfont earth">&#xe8ee;</span>
          </div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-top">
          <span class="item-title">Project Name</span>
          <span><span class="item-time-icon iconfont earth">&#xe638;</span>2020-04-17</span>
        </div>
        <div class="item-profile">
          <router-link to="/TextContent"
                       tag="div"
                       class="profile">
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.This is a profile about this news.
            This is a profile about this news.This is a profile about this news.
          </router-link>
          <div class="icon">
            <span class="iconfont earth">&#xe8ee;</span>
          </div>
        </div>
      </div>
      <div class="pagination">
        <el-pagination background
                       layout="prev, pager, next"
                       :total="1000">
        </el-pagination>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ListPage'
}
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  height: 1030px;
  display: flex;
  justify-content: center;
  .content {
    width: 96%;
    height: 98%;
    position: relative;
    padding: 30px 26px;
    box-sizing: border-box;
    border-radius: 5px;
    box-shadow: 2px 2px 7px #888888;
    color: #555;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 1.5px;
    .content-item {
      width: 98%;
      height: 130px;
      margin: 0 auto 10px auto;
      border-bottom: 1.5px dotted #e4e9f0;
      cursor: pointer;
      .item-top {
        width: 99%;
        height: 45px;
        line-height: 45px;
        display: flex;
        justify-content: space-between;
        .item-title {
          font-size: 18px;
        }
        .item-time-icon {
          font-size: 20px;
          margin-right: 5px;
        }
      }
      .item-profile {
        margin: 0 30px;
        height: 75px;
        box-sizing: border-box;
        display: flex;
        overflow: hidden;
        .profile {
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 3; //需要控制的文本行数
          overflow: hidden;
          transition: all 0.4s linear;
          &:hover {
            color: #72c02c;
            text-decoration: underline;
          }
        }
        .icon {
          display: inline-block;
          width: 40px;
          height: 90px;
          line-height: 90px;
          span {
            font-size: 25px;
            color: #4caf50;
            transition: all 0.3s linear;
            &:hover {
              color: #72c02c;
            }
          }
        }
      }
    }
    .pagination {
      position: absolute;
      width: 96.5%;
      height: 80px;
      margin-top: 30px;
      display: flex;
      justify-content: center;
      align-items: center;
      // background-color: #eee;
    }
  }
}
</style>
